package com.haisen.service;

import com.haisen.dataobject.dto.PubSubMsgDTO;
import com.haisen.dataobject.entity.VerifyCodeTmp;

import java.util.List;
import java.util.Map;

public interface VerifyCodeTmpService {

    void delete(Long[] ids);

    /**
     * 扫描
     */
    void scanning();

    /** 获取发布，订阅者信息
     * VerifyCodeTemp -->publisher <----JobNo (account4A) <--id  <---user VerifyPub_sub
     *  ===> content  <---> users
     */
    PubSubMsgDTO getPubSubDTO(VerifyCodeTmp verifyCodeTmp);


    /**
     * 获取要发布的主题
     * 轮询，发布队列
     */

    List<VerifyCodeTmp> getQuenceMsg(int top);

    /**
     * 推送消息到订阅者
     */
    void sendToSub(PubSubMsgDTO pubSubMsgDTO);


}
